package org.asiaark.developerstudio.framework.ibatis2;

import java.util.List;
import java.util.Map;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

public class DsSqlMapClientDaoSupport extends SqlMapClientDaoSupport {

	public Object insert(String statementName) {
		return getSqlMapClientTemplate().insert(statementName);
	}

	public Object insert(String statementName, Object parameterObject) {
		return getSqlMapClientTemplate().insert(statementName, parameterObject);
	}

	public List queryForList(String statementName) {
		return getSqlMapClientTemplate().queryForList(statementName);
	}

	public List queryForList(String statementName, Object parameterObject) {
		return getSqlMapClientTemplate().queryForList(statementName,
				parameterObject);
	}

	public Map queryForMap(String statementName, Object parameterObject,
			String keyProperty) {
		return getSqlMapClientTemplate().queryForMap(statementName,
				parameterObject, keyProperty);
	}

	public Map queryForMap(String statementName, Object parameterObject,
			String keyProperty, String valueProperty) {
		return getSqlMapClientTemplate().queryForMap(statementName,
				parameterObject, keyProperty, valueProperty);
	}

	public Object queryForObject(String statementName) {
		return getSqlMapClientTemplate().queryForObject(statementName);
	}

	public Object queryForObject(String statementName, Object parameterObject) {
		return getSqlMapClientTemplate().queryForObject(statementName,
				parameterObject);
	}

	public Object queryForObject(String statementName, Object parameterObject,
			Object resultObject) {
		return getSqlMapClientTemplate().queryForObject(statementName,
				parameterObject, resultObject);
	}

	public int update(String statementName) {
		return getSqlMapClientTemplate().update(statementName);
	}

	public int update(String statementName, Object parameterObject) {
		return getSqlMapClientTemplate().update(statementName, parameterObject);
	}

	public void update(String statementName, Object parameterObject,
			int requiredRowsAffected) {
		getSqlMapClientTemplate().update(statementName, parameterObject,
				requiredRowsAffected);
	}

	public int delete(String statementName) {
		return getSqlMapClientTemplate().delete(statementName);
	}

	public int delete(String statementName, Object parameterObject) {
		return getSqlMapClientTemplate().delete(statementName, parameterObject);
	}

	public void delete(String statementName, Object parameterObject,
			int requiredRowsAffected) {
		getSqlMapClientTemplate().delete(statementName, parameterObject,
				requiredRowsAffected);
	}

}
